package com.drp.service.impl;

import com.drp.bean.Client;
import com.drp.dao.ClientMapper;
import com.drp.service.IClientService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ren
 * @since 2022-03-16
 */
@Service
public class ClientServiceImpl extends ServiceImpl<ClientMapper, Client> implements IClientService {
    @Autowired
    private IClientService iClientService;
    @Autowired
    private ClientMapper clientMapper;

    @Override
    public List<Client> getClientByNameOrScope(String name,String scope) {
        List<Client> clientByNameOrScope = clientMapper.getClientByNameOrScope(name,scope);
        return clientByNameOrScope;
    }
}
